package com.example.administrator.dc.model;


import com.example.administrator.dc.Service.CarouselService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;


/**
 * Created by Administrator on 2017/8/15.
 */

public class CarouselModel {
    private Retrofit retrofit;
    public CarouselModel(){
        retrofit=new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl(Contants.BASE_URL)
                .build();

    }
    //轮播图列表
    public Call Carousel(){
        CarouselService service=retrofit.create(CarouselService.class);
        return  service.getrotatelist();
    }
}
